package com.softeem.score.model.entity.system;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.softeem.score.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description="SysUser对象")
@AllArgsConstructor
@NoArgsConstructor
public class SysUser extends BaseEntity {

    @Schema(description="用户名")
    private String username;

    @Schema(description="密码")
    private String password;

    @Schema(description="手机号")
    private String mobile;

    @Schema(description="电子邮箱")
    private String email;

    @Schema(description = "图像")
    private String avatar;

    @Schema(description = "状态（1：正常 0：停用）")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description="最近登录时间")
    private Date lastLoginTime;

    @Schema(description = "最近登录地址")
    private String ipconf;

}
